.class public Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# static fields
.field public static a:Landroid/widget/TextView;

.field public static b:Landroid/widget/ListView;


# instance fields
.field protected c:Z

.field public d:Ljava/lang/String;

.field public e:Ljava/util/List;

.field public f:Landroid/os/Handler;

.field private g:Landroid/widget/ImageView;

.field private h:Landroid/widget/TextView;

.field private i:Lcom/waiqin365/lightapp/im/contactlist/a/i;

.field private j:Landroid/os/Handler;

.field private k:Ljava/util/List;

.field private l:Ljava/util/ArrayList;

.field private m:Ljava/lang/String;

.field private n:Ljava/lang/String;

.field private o:Lcom/hyphenate/chat/EMGroup;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->c:Z

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->d:Ljava/lang/String;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->e:Ljava/util/List;

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/aa;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/contactlist/aa;-><init>(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->f:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Lcom/waiqin365/lightapp/im/contactlist/a/i;)Lcom/waiqin365/lightapp/im/contactlist/a/i;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->i:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Ljava/lang/Object;)Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->k:Ljava/util/List;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;
    .locals 1

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Ljava/util/List;)Ljava/util/List;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->k:Ljava/util/List;

    return-object p1
.end method

.method private a(Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;
    .locals 5

    const/4 v1, 0x0

    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/a;-><init>()V

    const-string/jumbo v2, "-1"

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_0

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v3, p1, v4, v1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lcom/waiqin365/base/db/offlinedata/q;Z)Ljava/util/ArrayList;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    if-nez p1, :cond_1

    :goto_0
    sget-object v4, Lcom/waiqin365/base/db/offlinedata/q;->a:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v3, v0, v4}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lcom/waiqin365/base/db/offlinedata/q;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :goto_1
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    const/4 v3, 0x1

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->e:Z

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iput-object p1, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->a:Lcom/waiqin365/lightapp/kehu/share/a/a;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_1
    move-object v0, p1

    goto :goto_0

    :cond_2
    return-object v2
.end method

.method private a(Ljava/util/List;)Ljava/util/List;
    .locals 6

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v4

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-ge v1, v4, :cond_1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v5, "_"

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v5, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->l:Ljava/util/ArrayList;

    invoke-virtual {v5, v0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    return-object v2
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/y;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/contactlist/y;-><init>(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->j:Landroid/os/Handler;

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->l:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Ljava/util/List;)Ljava/util/List;
    .locals 1

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method private b()V
    .locals 3

    const v0, 0x7f0c070f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->g:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0711

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->h:Landroid/widget/TextView;

    const v0, 0x7f0c0712

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sput-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->h:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080765

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0784

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    sput-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/ad;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->j:Landroid/os/Handler;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/im/contactlist/ad;-><init>(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Landroid/os/Handler;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/ad;->start()V

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->showProgressDialog(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Lcom/waiqin365/lightapp/im/contactlist/a/i;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->i:Lcom/waiqin365/lightapp/im/contactlist/a/i;

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/util/List;Ljava/lang/String;)V
    .locals 2

    const v0, 0x7f08014a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/waiqin365/lightapp/im/contactlist/z;

    invoke-direct {v1, p0, p2, p1}, Lcom/waiqin365/lightapp/im/contactlist/z;-><init>(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;Ljava/lang/String;Ljava/util/List;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 4

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    sparse-switch p1, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0, p2}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->finish()V

    goto :goto_0

    :sswitch_1
    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a()Ljava/util/List;

    move-result-object v2

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x0

    move v1, v0

    :goto_1
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v0, :cond_1

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_2
    const-string/jumbo v0, "edittext"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v3, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a(Ljava/util/List;Ljava/lang/String;)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_1
        0x6a -> :sswitch_0
    .end sparse-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 11

    const/4 v10, 0x1

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->back()V

    goto :goto_0

    :pswitch_2
    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a()Ljava/util/List;

    move-result-object v3

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    move v1, v2

    :goto_1
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v0, :cond_0

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-interface {v4, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_1
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->c:Z

    if-eqz v0, :cond_6

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v0

    if-ne v0, v10, :cond_3

    new-instance v1, Landroid/content/Intent;

    const-class v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-direct {v1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v6, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const v0, 0x7f080073

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->q:Ljava/lang/String;

    const-string/jumbo v2, "toChatUsername"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, "_"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "userId"

    invoke-virtual {v1, v2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "userName"

    invoke-virtual {v1, v2, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "pic_url"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/16 v0, 0x6a

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_3
    sget-object v0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->a()Ljava/util/List;

    move-result-object v1

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    :goto_2
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v0

    if-ge v2, v0, :cond_5

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v0, :cond_4

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_4
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_5
    const-string/jumbo v0, "\u7fa4\u804a"

    invoke-virtual {p0, v4, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a(Ljava/util/List;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->o:Lcom/hyphenate/chat/EMGroup;

    if-eqz v0, :cond_9

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->o:Lcom/hyphenate/chat/EMGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMGroup;->getGroupName()Ljava/lang/String;

    move-result-object v5

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->o:Lcom/hyphenate/chat/EMGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMGroup;->getGroupId()Ljava/lang/String;

    move-result-object v6

    move v1, v2

    :goto_3
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_8

    if-nez v1, :cond_7

    invoke-interface {v4, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    :goto_4
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_3

    :cond_7
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v7, "\u3001"

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-interface {v4, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    goto :goto_4

    :cond_8
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->TXT:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v3, p0}, Lcom/waiqin365/lightapp/im/utils/e;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const v7, 0x7f08033e

    invoke-virtual {p0, v7}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v7, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->m:Ljava/lang/String;

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const v7, 0x7f08033f

    invoke-virtual {p0, v7}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v5, Lcom/hyphenate/chat/EMTextMessageBody;

    invoke-direct {v5, v1}, Lcom/hyphenate/chat/EMTextMessageBody;-><init>(Ljava/lang/String;)V

    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v8

    invoke-virtual {v0, v8, v9}, Lcom/hyphenate/chat/EMMessage;->setMsgTime(J)V

    invoke-virtual {v0, v3}, Lcom/hyphenate/chat/EMMessage;->setFrom(Ljava/lang/String;)V

    invoke-virtual {v0, v6}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    const-string/jumbo v1, "is_notification"

    invoke-virtual {v0, v1, v10}, Lcom/hyphenate/chat/EMMessage;->setAttribute(Ljava/lang/String;Z)V

    invoke-virtual {v0, v5}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMChatManager;->sendMessage(Lcom/hyphenate/chat/EMMessage;)V

    :cond_9
    const/4 v1, -0x1

    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v5, "newmembers"

    invoke-direct {p0, v4}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    new-array v2, v2, [Ljava/lang/String;

    invoke-interface {v0, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/String;

    invoke-virtual {v3, v5, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->finish()V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c070f
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030145

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "exitingMembers"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->l:Ljava/util/ArrayList;

    const-string/jumbo v1, "isCreatingNewGroup"

    iget-boolean v2, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->c:Z

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->c:Z

    const-string/jumbo v1, "groupId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->n:Ljava/lang/String;

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->c:Z

    if-nez v0, :cond_0

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->n:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMGroupManager;->getGroup(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->o:Lcom/hyphenate/chat/EMGroup;

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListSelectByDepartmentActivity;->b()V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 1

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/contactlist/a/i;

    invoke-virtual {v0, p3}, Lcom/waiqin365/lightapp/im/contactlist/a/i;->b(I)V

    return-void
.end method
